<?php
/* Class teia\webdev\php\core\ShoppingItem
* Simple core class for shopping items
*
* @author Bernardo Quibiana
* @date created: 20111019
*
* @date modified: 20111030
* @modified: Bernardo Quibiana
*/

// namespace declaration: core Abstract Data Types
namespace teia\webdev\php\core;

require_once 'ProductItem.inc';

class ShoesItem extends ProductItem {
	protected $item_id;
	protected $item_size;
	protected $item_color;
	protected $item_stock_qty;
	protected $item_descr;
	
	
	public function get_link() {
		if ($this->link) {
			return $this->link;
		} else {
			return "ShoesPage.php?Item_id=$this->item_id";
		}
	}
	
	public function generate_page() {
		$code = "<div class=\"page_item\" id=\"$this->elem_id\">\n
					</div>\n";
		return $code;
	}
} // end of class ShoesItem

?>